from typing import List


# List的用法
def TwoSum(A, B):
    return A + B

def CheckTwoSum(List):
    return max((TwoSum(List[i], List[i+1]) for i in range(len(List) - 1)))

L = [1,2,3,4,5,6]
print(CheckTwoSum(L))